package com.orange.templatePatterns;

import org.springframework.context.ApplicationContext;

import java.io.InputStream;
import java.util.AbstractList;

public class WechatPay extends AbstructPayMent{
    @Override
    public void userApiToPay(int amount) {
        //4引入微信支付api
        System.out.println("引入微信api");
        //5使用微信api查看余额
        System.out.println("查看余额");
        //6判断余额是否充足
        System.out.println("判断中");
        //7调用微信支付的API完成支付
        System.out.println("Wechat Pay " + amount + " yuan");
    }



}
